<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:c="http://java.sun.com/jsp/jstl/core">

    <body>

        <ui:composition>

            <div id="post">


                <h3>Relatório de Disciplinas Cadastradas</h3>

                <div id="stylized" class="myform">

                    <div id="relato" >

                        <table>
                            <thead>
                                <tr>
                                    <th>ID</th>
                                    <td>#{DisciplinaProfessorController.disciplinaProfessorAux.id}</td>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <th>Nome</th>
                                    <td>#{DisciplinaProfessorController.disciplinaProfessorAux.disciplina.nome}</td>
                                </tr>
                                <tr>
                                    <th>Descrição</th>
                                    <td>#{DisciplinaProfessorController.disciplinaProfessorAux.descricao}</td>
                                </tr>
                            </tbody>

                        </table>
                    </div>

                    <br />
                    <br />
                    <h3>Ementa</h3>

                    <p:panel id="pnl1"  header="Ementas" toggleable="true" toggleSpeed="500" closeSpeed="2000" widgetVar="panel">


                        <p:dataList  var="ementaTemp" value="#{DisciplinaProfessorController.disciplinaProfessorAux.ementas}" itemType="circle"  >
                            <h:outputText value="#{ementaTemp.ementa}" />
                        </p:dataList>
                    </p:panel>

                    <h:commandButton styleClass="button" action="#{DisciplinaProfessorController.setPageDisciplinaCad}" value="Novo" />
                    <h:commandButton styleClass="button" action="#{DisciplinaProfessorController.editButton}" value="Editar" />
                    <h:commandButton styleClass="button" action="#{DisciplinaProfessorController.destroyButton}" value="Excluir" />

                    <br />
                    <!--                    <h:commandButton styleClass="button" action="{DisciplinaController.addTurma}" value="Add Turma" id="addTurma"/>-->
                    <h:commandButton styleClass="button" action="#{TurmaController.setPageTurmaCad}" value="Add Turma" id="addTurma"/>






                </div>
            </div>
        </ui:composition>

    </body>
</html>
